package com.cyl.wms.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * 资产清单表对象 asset_item
 * 
 * @author zcc
 */
@ApiModel(description="资产清单表对象")
@Data
@TableName("asset_item")
public class AssetItem {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("ID")
    private Integer id;

    @ApiModelProperty("资产编码")
    @Excel(name = "资产编码")
    private String number;

    @ApiModelProperty("资产名称")
    @Excel(name = "资产名称")
    private String name;

    @ApiModelProperty("资产分类ID")
    @Excel(name = "资产分类ID")
    private Integer categoryId;

    @ApiModelProperty("资产分类名称")
    @Excel(name = "资产分类名称")
    @TableField(exist = false)
    private String categoryName;

    @ApiModelProperty("RFID")
    @Excel(name = "RFID")
    private String rfid;

    @ApiModelProperty("品牌")
    @Excel(name = "品牌")
    private String brand;

    @ApiModelProperty("型号")
    @Excel(name = "型号")
    private String model;

    @ApiModelProperty("购置方式")
    @Excel(name = "购置方式")
    private String buyWay;

    @ApiModelProperty("购置时间")
    @Excel(name = "购置时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime buyTime;

    @ApiModelProperty("购置金额")
    @Excel(name = "购置金额")
    private BigDecimal buyPrice;

    @ApiModelProperty("管理员ID")
    private Long adminId;

    @TableField(exist = false)
    @ApiModelProperty("管理员")
    private String adminName;

    @ApiModelProperty("使用人ID")
    private Integer userId;

    @TableField(exist = false)
    @ApiModelProperty("使用人")
    private String userName;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT)
    private Integer createUserId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateUserId;

    private Integer state;

    private int delFlag;

}
